OneTeamSoftware\WooCommerce\Shipping\Adapter\EasyPost D

Total Complexity 180
Dependencies 0
Dependents 0
Total lines 1,939
Lines of code 1,666
Logical lines of code 385
Comment lines 14
Methods 47
Properties 4

Methods 47

Method Rating Maintainability Complexity Lines of code
initServices()
D
6
1 813
getRatesParams()
C
34 25 84
getRatesResponse()
B
39 21 57
prepareParcelInfo()
A
42 15 50
prepareAddress()
A
44 14 47
prepareCustomsInfo()
A
47 13 35
setShipmentCacheValues()
A
49 10 32
initPackageTypes()
A
31 1 126
prepareCustomsItem()
S
49 7 27
setAddressCacheValue()
S
54 6 20
initCarriers()
S
36 1 92
setValidationErrors()
S
59 5 14
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getErrorMessage()
S
63 4 12
getResponse()
S
61 4 11
getRates()
S
57 3 16
getCachedCustomsInfo()
S
61 3 12
__construct()
S
47 1 37
getIntegrationFormFields()
S
51 1 32
getRatesCacheKey()
S
64 3 10
getRequestParams()
S
65 3 8
validateActiveApiToken()
S
67 3 7
getCachedParcelInfo()
S
63 2 10
getServiceName()
S
68 2 7
getCachedAddress()
S
63 2 10
getApiKey()
S
79 2 3
getCacheKey()
S
72 1 5
hasLinkFeature()
S
82 1 3
hasUseSellerAddressFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
getServiceId()
S
80 1 3
addHeadersAndParams()
S
78 1 3
getRouteUrl()
S
73 1 5
hasAddressValidationFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3
hasMediaMailFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
getName()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasUpdateShipmentsFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasCreateManifestsFeature()
S
82 1 3
hasCarriersFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3